﻿// ******************************************************************
// * Copyright(c)  Steven Lu
// * Description   : Entity_PROD_HISTORY_TECHNIC_ITEM_DETAIL
// * CreateDate    : 2012/4/19 16:54:37
// * Creater       : CodeSmith
// * LastChangeDate: 2012/4/19 16:54:37
// * LastChanger   : 2012/4/19 16:54:37
// * Version Info  : 1.0 For ESOL
// ******************************************************************

using System;
using System.Data;
using System.Collections.Generic;
using System.Text;
using Suzsoft.Smart.EntityCore;
using ESOL.Common.Schema;

namespace ESOL.Common.Entity
{
    [Serializable]
    public partial class ProdHistoryTechnicItemDetailEntity : EntityBase
    {
        public ProdHistoryTechnicItemDetailTable TableSchema
        {
            get
            {
                return ProdHistoryTechnicItemDetailTable.Current;
            }
        }

        public ProdHistoryTechnicItemDetailEntity()
        {

        }

        public ProdHistoryTechnicItemDetailEntity(DataRow dr)
        {
            if (dr == null)
            {
                return;
            }
            this.Id = Convert.ToString(CommonFunctions.ToObject(dr["ID"]));
            this.HistoryTechnicItemId = Convert.ToString(CommonFunctions.ToObject(dr["HISTORY_TECHNIC_ITEM_ID"]));
            this.GroupPerson = Convert.ToString(CommonFunctions.ToObject(dr["GROUP_PERSON"]));
            this.Qty = Convert.ToDecimal(CommonFunctions.ToObject(dr["QTY"]));
            this.WorkingTime = Convert.ToDecimal(CommonFunctions.ToObject(dr["WORKING_TIME"]));
            this.TimeCoefficient = Convert.ToDecimal(CommonFunctions.ToObject(dr["TIME_COEFFICIENT"]));
        }

        public ProdHistoryTechnicItemDetailEntity(DataRowView dr)
        {
            if (dr == null)
            {
                return;
            }
            this.Id = Convert.ToString(CommonFunctions.ToObject(dr["ID"]));
            this.HistoryTechnicItemId = Convert.ToString(CommonFunctions.ToObject(dr["HISTORY_TECHNIC_ITEM_ID"]));
            this.GroupPerson = Convert.ToString(CommonFunctions.ToObject(dr["GROUP_PERSON"]));
            this.Qty = Convert.ToDecimal(CommonFunctions.ToObject(dr["QTY"]));
            this.WorkingTime = Convert.ToDecimal(CommonFunctions.ToObject(dr["WORKING_TIME"]));
            this.TimeCoefficient = Convert.ToDecimal(CommonFunctions.ToObject(dr["TIME_COEFFICIENT"]));
        }

        public override TableInfo OringTableSchema
        {
            get
            {
                return ProdHistoryTechnicItemDetailTable.Current;
            }
        }

        #region Perporty List
        public string Id
        {
            get { return Convert.ToString(GetData(ProdHistoryTechnicItemDetailTable.C_ID)); }
            set { SetData(ProdHistoryTechnicItemDetailTable.C_ID, value); }
        }

        public string HistoryTechnicItemId
        {
            get { return Convert.ToString(GetData(ProdHistoryTechnicItemDetailTable.C_HISTORY_TECHNIC_ITEM_ID)); }
            set { SetData(ProdHistoryTechnicItemDetailTable.C_HISTORY_TECHNIC_ITEM_ID, value); }
        }

        public string GroupPerson
        {
            get { return Convert.ToString(GetData(ProdHistoryTechnicItemDetailTable.C_GROUP_PERSON)); }
            set { SetData(ProdHistoryTechnicItemDetailTable.C_GROUP_PERSON, value); }
        }

        public decimal Qty
        {
            get { return Convert.ToDecimal(GetData(ProdHistoryTechnicItemDetailTable.C_QTY)); }
            set { SetData(ProdHistoryTechnicItemDetailTable.C_QTY, value); }
        }

        public decimal WorkingTime
        {
            get { return Convert.ToDecimal(GetData(ProdHistoryTechnicItemDetailTable.C_WORKING_TIME)); }
            set { SetData(ProdHistoryTechnicItemDetailTable.C_WORKING_TIME, value); }
        }

        public decimal TimeCoefficient
        {
            get { return Convert.ToDecimal(GetData(ProdHistoryTechnicItemDetailTable.C_TIME_COEFFICIENT)); }
            set { SetData(ProdHistoryTechnicItemDetailTable.C_TIME_COEFFICIENT, value); }
        }

        #endregion
    }


}

